<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use App\Controller\Address;
use App\Controller\Api\Auth;
use App\Controller\Bankcard;
use App\Controller\Extract;
use App\Controller\Rate;
use App\Controller\TopUp;
use App\Controller\Wallets;
use App\Middleware\ApiAuthMiddleware;
use Hyperf\HttpServer\Router\Router;
use App\Controller\ElectricCards;
use App\Controller\FuelCards;
use App\Controller\FuelOrders;
use App\Controller\TelephoneOrders;
use App\Controller\ElectricOrders;
use App\Controller\Transact;

Router::addGroup('/api/v1', function () {

    Router::post('/card/verif', [\App\Controller\IndexController::class, 'cardVerif'], ['operation' => '卡号验证']);
    Router::post('/sms/send', [\App\Controller\IndexController::class, 'smsSend'], ['operation' => '短信验证码发送']);
    Router::post('/sms/send/status', [\App\Controller\IndexController::class, 'smsSendStatus'], ['operation' => '短信验证码发送状态']);

    Router::post('/login/mobile/status', [\App\Controller\IndexController::class, 'loginStatus'], ['operation' => '登录状态查询']);
    Router::post('/login/mobile/smscode', [\App\Controller\IndexController::class, 'login'], ['operation' => '登录']);
    Router::post('/login/mobile/smscode/tmp', [\App\Controller\IndexController::class, 'loginTemp'], ['operation' => '登录及时']);

    Router::post('/login/email', [\App\Controller\IndexController::class, 'loginEmail'], ['operation' => '登录邮箱']);
});


Router::post('/file/excel', [\App\Controller\File::class, 'uploadExcel'], ['operation' => 'excel文件上传']);




